from src.CarsShop import CarsShop
from src.DBStrategy import FileDBStrategy
from src.IOStrategy import FlaskIOStrategy
from src.Server import Server


def main():
    io_strategy = FlaskIOStrategy()
    db_strategy = FileDBStrategy()
    shop = CarsShop(io_strategy, db_strategy)
    s = Server(__name__, shop)
    s.run()


if __name__ == "__main__":
    main()
